package com.qch.concurrent.demo_05_interrupt;

/**
 * @Author qch
 * @Date 2021/7/29
 */
public class MyThread extends Thread {
    @Override
    public void run() {
        while (true) {
            //中断状态
            boolean flag = isInterrupted();
            System.out.println("中断状态" + flag);
        }
    }
}
